package com.heze.xunhuan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 点赞表实体类
 *
 * @author heze-xunhuan
 */
@Data
@TableName("likes")
public class Like implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 点赞ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 信息ID
     */
    private Long postId;

    /**
     * 创建时间
     */
    private LocalDateTime createdAt;
}

